package kino.command;

import org.springframework.beans.factory.annotation.Autowired;
import kino.client.KinoClient;
import kino.common.KinoConstant;
import kino.server.KinoServer;

@KinoCommandEnable
public class QuitCommand extends AbstractKinoCommand{
    @Autowired
    private KinoServer kinoServer;
    @Override
    public String doExecute(KinoClient client, String... argv) {
        kinoServer.clientLoginOut(client);
        return KinoConstant.OK;
    }

    @Override
    public Integer getArgc() {
        return 0;
    }

    @Override
    public String getCommandName() {
        return "quit";
    }

    @Override
    public boolean aofFlag() {
        return false;
    }

    @Override
    public boolean hasExtParam() {
        return false;
    }
}
